package com.sky.controller.user;

import com.sky.dto.UserLoginDTO;
import com.sky.result.Result;
import com.sky.service.UserService;
import com.sky.vo.UserLoginVO;
import com.sky.vo.UserReportVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 微信登录
 */
@RestController
@ApiOperation(value = "客户端用户微信登录")
@RequestMapping("/user/user")
public class UserController {
    @Autowired
    private UserService service;
    @PostMapping("/login")
    @ApiOperation("微信登录")
    public Result<UserLoginVO> loginUser(@RequestBody UserLoginDTO dto){
        return service.loginUser(dto);
    }
}
